package com.songcha.module_mine.ui.fragment.mine

import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_network.bean.BaseBean
import com.songcha.library_network.bean.BaseListDataBean
import com.songcha.module_mine.api.MineApiManager
import com.songcha.module_mine.bean.GoldExchangeVipBean
import com.songcha.module_mine.bean.SystemMessageDataBean
import io.reactivex.Observable

class MineRepository:BaseRepository() {
    fun getSystemMessage(): Observable<SystemMessageDataBean> {
        return MineApiManager.api.getSystemMessage()
    }

    fun getGoldExchangeVipList():Observable<BaseListDataBean<GoldExchangeVipBean>>{
        return MineApiManager.api.getGoldExchangeVipList()
    }

    fun goldExchangeVip(id:Int): Observable<BaseBean> {
        return MineApiManager.api.GoldExchangeVip(id)
    }
}